<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="pragma" content="no-cache">
<title>天小天个人网-首页</title>
<link rel="shortcut icon " type="images/x-png" href="../../public/pic/icon.png">
<link href="../css/dynamic.css" type="text/css" rel="stylesheet">
<link href="../../public/bs/css/bootstrap.min.css" type="text/css" rel="stylesheet">
<script src="../../public/bs/js/jquery-3.3.1.min.js" type="text/javascript"></script>
<script src="../../public/bs/js/bootstrap.min.js" type="text/javascript"></script>
<script src="../js/dynamic.js" type="text/javascript"></script>
</head>

<body>
	<nav class="navbra navbar-default" >
    <div class="container-fluid">
        <div class="navbar-header">
            <button class="navbar-toggle" data-toggle="collapse" data-target="#example-navbar-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a href="../model/index.php" class="navbar-brand nav-title">
                天小天个人网
            </a>
        </div>
        <div class="collapse navbar-collapse" id="example-navbar-collapse">
            <ul class="nav navbar-nav">
                <li class=""><a href="../model/index.php">首页</a></li>
                <li class=""><a href="../model/resume.php">个人简历</a></li>
                <li class="active"><a href="../model/dynamic.php">我的动态</a></li>
                <li class=""><a href="../model/web.php">web技术</a></li>
                <li class=""><a href="../model/index.php">网站协会</a></li>
                <li class=""><a href="../model/comment.php">给我留言</a></li>
                <li>
                    <a href="<?php echo $herf ?>">
                        <img src="<?php echo $photo ?>" style="width:20px;height:20px;" class="img-circle">
                    </a>
                </li>
            </ul>
        </div>
    </div>
    </nav>
    <div class="dy_bt container">
        <button class="btn col-xs-5 btn-info">动态</button>
        <button class="btn col-xs-5 col-xs-offset-2">相册</button>
    </div>
    <div class="dy1 container">
        <div class="col-md-12 dy1_all">
        <?php foreach($dy1data as $v){ ?>
        <div class="dy1_text col-xs-12">
           <div class="pull-left col-sm-4 dy1_text-lf">
               <img src="../../upload/dynamic1/dy1_<?php echo $v['dy1id'] ?>.jpg" width="100%"> 
           </div>
           <div class="col-sm-8 dy1_text-rt">
               <h4><?php echo $v['dy1time'] ?></h4>
               <p><?php echo $v['dy1text'] ?></p>
           </div>
        </div>
        <?php } ?>
        </div>
    </div>
    <div class="dy2 container">
        <ul class="col-md-12 dy2_ul">
            <li class="col-xs-3" style="border-color:#FFD42D;">生活</li>
            <li class="col-xs-3">学习</li>
            <li class="col-xs-3">自己</li>
            <li class="col-xs-3">其他</li>
        </ul>
        <div class="col-md-12 dy2_pic">
            <div class="dy2pic0 col-md-12">
            <?php foreach($filesnames1 as $v){ ?> 
            <img src="../../upload/dynamic2/life/<?php echo $v;?>" width="100%" class="col-md-3"/>
            <?php } ?> 
            </div>
            <div class="dy2pic1 col-md-12 hidden">
            <?php foreach($filesnames2 as $v){ ?> 
            <img src="../../upload/dynamic2/study/<?php echo $v;?>" width="100%" class="col-md-3"/>
            <?php } ?> 
            </div>
            <div class="dy2pic2 col-md-12 hidden">
            <?php foreach($filesnames3 as $v){ ?> 
            <img src="../../upload/dynamic2/myself/<?php echo $v;?>" width="100%" class="col-md-3"/>
            <?php } ?> 
            </div>
            <div class="dy2pic3 col-md-12 hidden">
            <?php foreach($filesnames4 as $v){ ?> 
            <img src="../../upload/dynamic2/other/<?php echo $v;?>" width="100%" class="col-md-3"/>
            <?php } ?> 
            </div>
        </div>
    </div>
</body>
</html>
